hanging global
remove dead code
found a fix
apply fix everywhere
Merge pull request #2108 from reciprocity/feature/core-819

Fix script error when no autosuggest results