Fix bug introduced in last commit for get on search page without query