refs #6287. Fix ILL on windows 7.

There was a container overflow issue. Windows is stricter about these things. The loop conditions have been changed, but will need to be re-checked.