Handle situation where a new group is seen.

This was throwing a (justified) NullPointerException, since you can't
get a group that doesn't exist yet.