Fixed Search bar error

When clicking Search with nothing in the input field, the website would
return to the homepage. Now it will make a similar error like the
comments and not go anywhere until something is inputted into the text
field