Fixes GH-119 - NullPointerException onItemCheckedStateChanged

In theory fixing GH-120 should also prevent this, but to be careful, we
double check that we have a valid cursor.

Signed-off-by: Ian Lake <ian.hannibal.lake@gmail.com>