Fix a problem with PHP embedded server. $_SERVER['QUERY_STRING'] is not set if it's empty.