Guard nqp::isnanorinf with an nqp::istype check for jvm