fix #11401: remove deleted tree notes from selected set
move deleted tree node deselection into browser component

suggested by @joshmoore
Merge pull request #1435 from mtbc/deleted-container-11401

fix #11401: remove deleted tree nodes from set of selected nodes (rebase)