Fix for CheckMysqlQuery Nullpointer (JNRPE-7)