Attempt to fix Issue #2

Changed order of operations on selecting an autocomplete option to solve the JS error that results from trying to set focus back to the autocomplete input element after it has been hidden due to reaching maximum entity selection.