tosulliv: fix for cursor returning 0 instead of null for 'int' indexes
which actually contain a null