fix(typeahead): prevent error on enter with an empty list (fixes #631)