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

Fixes #1619.

r? @frank-trampe
> I don't know whether that's necessary or not.

What do you mean by 'that' exactly?