Fix crash when attempting to display popup menu

zsh still does not invoke the menu, but at least now it doesn't crash on
no input