refs #8733. Check existance before deletion.

When we have group workspaces, if the parent group workspace is deleted first, then it will also remove the children. If that happens, the names previously fetched (which also include the childeren) may be invalid. Checking each workspace before deletion will avoid the invalid delete.
Merge branch 'feature/8733_polarisation_correction_gui' into develop