Don't remove items from a list you iterate through

Fixes LiveSplit/LiveSplit#66