Fix mysqli_query return value for query without result

I see. The problem is that php_mysql_do_query_and_get_result first calls php_mysql_do_query and then php_mysql_get_result. So you are now moving a check that is halfway down into php_mysql_get_result up to php_mysql_do_query. So in case `use_store=true` and `$ifdef FACEBOOK` you would return something different.