Fix a crash in DataDictionary::validate() method when called with NULL pointer specified for application data dictionary parameter. Small cleanup
Fix leaking Session object when exception occurs in SessionFactory::create() method