back out change from PR 6382 where project tree without any selection incorrectly sets the current working set document as the tree selection