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

Fixes #1619.

r? @frank-trampe
That was just for debugging, in order to verify if this code was indeed about that. I can remove it if you want.