Fix mysqli_query return value for query without result

I assumed that php_mysql_localize_result(), which is the function called inside the $ifdef FACEBOOK, returns nothing if there is no result.