[jit] Convert some of the error handling to use cfg->error instead of cfg->exception_...