Fix validity checks in ui_ask_singlechoice
Fix validity checks in ui_ask_singlechoice

Check that input is an integer before doing a comparison with it, and
check that it is positive.

neverpanic/macports-base,macports/macports-base,danchr/macports-base,neverpanic/macports-base,macports/macports-base,danchr/macports-base