Protect SessionFactoryRegistry.getNamedSessionFactory(String) from NPE when the named SessionFactory hasn't been registered

This can occur from ProviderMBeanRegistration.locateSessionFactory() when it checks to see whether the named SessionFactory is available on a background thread. It expects a null response to indicate that the SessionFactory has not been configured yet.