Fixing issue where if a logger for NHibernate.SQL was configured in the host application, messages were not logged.