Fix up initial group assoc term loop

bp_has_groups is paginated, the parent_id is in an array 'vars'