This definitely looks like a bug to me. Your use case is exactly what conditional dependencies are for.