Check for empty query string