Before undo/redo: Clear node selection.