Fix for provider registration listener, which stops waiting after one
provider is found, instead of waiting for the target provider.