Fixed missing-terminator bug

The loop over instructions in a basic block was exiting upon encountering the terminator instruction rather than after instrumenting the terminator instruction.