interpreter: add `Instance::is_null` to simplify code