If a null query is given don't try to search it (usually happens if a query is invalid)