Fixed typeahead to hide on empty text box