Fix code generation for JIT stubs

This would check against the wrong variable for NULL. This could result
in an incorrect NULL deference in the JIT helper.