Ensure LAST only fires if we actually iterate.

Fixes RT#122011.
Run S04-phasers/in-loop.t.