Fix bug: ConcurrentModificationException when posting events

See case 1 in UnitTest.java for more detail about how to reproduce