nitg: fix FFI _is_null functions