Added missing nullcheck in IdentityProviderCollection.RegisterIdentityProviders.