Fixed bug related to clearing searches

Bugs related to clearing searches when not logged in as well as when there is no search type selected.

Closes #276