Changed getMenuOption.

getMenuOption doesn't terminate when entering something else than null.