kernclass: don't deref. NULL on empty chooser input

Fixes #1619.

r? @frank-trampe
I happened to be working on a duplicate issue just now (in #1627), and I preferred checking for null right after the picker so as to avoid handing a null pointer to GGadgetSetTitle8. I don't know whether that's necessary or not. Can you take a look?