Handle empty queries.