editor: ensure state is cleaned up if active editor's row is removed