Fix mysqli_query return value for query without result

I agree. So tell me if you want me to modify the PR, because meantime hhvm cannot be used with drupal 6 configured to use mysqli.