Fix script error when no autosuggest results

CORE-819

Pressing down-arrow when autosuggest came up with nothing produced a script error.