Small improvement in DependencyResolverExtensions