Update AutocompleteBase.js

fixing an issue RF-13306

please review.