WEB-5189 Minor bug fixes for search and autocomplete.