Don't submit a search when the query is empty.