Fixed bug where the focusedEditor wouldn't be set to null when that editor was removed.