[IR] Fix IR JIT breakage from b95700d

* Was missing an instanceof check. Fixed now.