Avoid error when processing an OP_NULL without kids

OP_NULL can be either UNOP or BASEOP, so check OPf_KIDS
before casting.