Fix autocomplete build

Don’t show dialog when prefix is empty