fix #11401: remove deleted tree notes from selected set
Merge pull request #1427 from mtbc/deleted-container-11401

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