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

I saw that you used var x = (cond) ? y : z; in previous lines. I think that you could do the same here if you want of course

```js
var tIndex = tDivider ? items.indexOf(tDivider) + 1 || 0;
```