fix: Correctly cleanup last_search

* The contents of localStorage['last_search'] should get cleared when
  the user clears the search input or clicks on the X there.