JIT: fix carry optimization on blocks that end early

I don't know if this shows up currently, but e.g. if you force blocks to be
under a certain length, this problem shows up.