Added additional checks on MySQLDatabase::_StoreQueryResult