[RISCV][InsertVSETVLI] Check for undef register operand directly [nfc]
getVNInfoFromReg is expected to return a nullptr if-and-only-if the
operand is undef. (This was asserted for.) Reverse the order of the
checks to simplify an upcoming set of patches.