Stop iterator in FOR loop being called once more after a break