Fix breakage up to Firefox 28 with autocomplete