CORE-3922 Fix for "redundant remove" exceptions in SelectCollaboratorsDialog.

Remove handlers on SelectCollaboratorsDialog detach rather than hide, since moving the dialog as well as closing it causes onHide to be called.(cherry picked from commit 019734849981088b40dd523510f7a34513dc4f19)