FIX: Fixed contact groups explode whith multival cgroup

Fixed a bug introduced in #984 that led to an uncatched exception when contact groups were set as multivalued attribute.