Fixed integer overflow in SteppingThreadGroup.

I attempted to fix this in 12d999488905daea42b6fdd802ee85db8ff5a12f but the fix didn't actually work.