Fix mysqli_query return value for query without result

I think this diff is fine. Just wanted to make sure we didn't break mysql_query.