Cleaning up selected nodes after unselection since parts of tree can remain selected even with no selected children.