Prevent infinite loops looking for group members and subgroups.

Because we cannot prevent of :poop: happening.

/cc @sbryant, @mtodd