avoiding problems when ENTER_FRAME event list is modified while being enumerated (refs #311)