[jit] Fix a regression caused by 28374f3161d7bd2521b26b4ce23515ec27eb2174. Fixes #17392.