[jit] Fix -O=precomp option to skip generic methods and not crash.