In some implementations it is possible for Class#getClassLoader to return null. We need to clean up null class loaders in SmackConfiguration and ProviderManager.