fix to Emitter save_state, event_count does not increment when pyglet editor is on