fix a possible segfault upon invalid selection.
tree8eb7c3abb47114ac6d810ff832f5aae87722c2bf
drwxr-xr-x - apps
drwxr-xr-x - bootloader
drwxr-xr-x - docs
drwxr-xr-x - firmware
drwxr-xr-x - flash
drwxr-xr-x - fonts
drwxr-xr-x - gdb
drwxr-xr-x - manual
drwxr-xr-x - rbutil
drwxr-xr-x - tools
drwxr-xr-x - uisimulator
drwxr-xr-x - utils
drwxr-xr-x - wps