Fix when autocomplete breaks entire dialog if no data.