Fix redirect from search controller when query is empty