Bug 1074798 - Make creating new groups match spec. r=kgrandon

please check if foundIndex is null before this.icon.detail.index