Keep detector visibility set in tree tab in pick and mask tabs.

Switching to render tab restores visibility of all detectors. Re #6627.
Merge remote-tracking branch 'origin/feature/6627_bug_in_tree_pick'