hide autocompletion if input is empty or lost focus