Properly handle invalid menu selections.