Check if workspace is in group before attempting to add it.

Refs #10116.
Merge branch 'feature/10116_refl_gui_keep_tof_workspaces' into develop