Destroy the editor when an EditorComponent is unmounted

Fixes #3222
Only allow ReactEditorView::beforeRemove to run once