Protect against MST==null in refine_of_groups.