Clear search results if query is an empty string and hide pre