fix bug on query timeout result

will lead to an ejabberd_odbc function_clause which assume result is a p1_mysql_result