autocomplete: clear active item after selection

After an item is chosen, we should clear the selected item in the list view. The implementation is a little weird. I noticed that code was pretty old that I was editing :). This fixes a bug where the same item will be selected multiple times when it shouldn't be.
If I can find time to do that then I will open another pull request. This shouldn't hold off the pull request. I'll be merging this.