Fix search history save from search box. Refs #2010