Crash due to accessing removed parent lineboxes when clearing selection.