Fix crash in 1.2 when no `environment_groups` set