don't crash if no group is specified (bug #4836)