Set parent = null after dispatching events
Merge pull request #189 from raggy/stageNullError

Set parent = null after dispatching events