minor fix: using null clause in the search query to prevent empty query being executed.