Fix a thinko.

Just 'cus the code look like it'll do the right thing doesn't mean it
actually will...
Add missing sanity check in deopt rebuild.

Hopefully resolves issue valgrind picked up reported by nwc10++.