Emptying autocomplete input box clears internal value