Handle empty query