be more careful with the index to groupMemberIds
memberManagementRows may grow now,
however, usually together with groupMemberIds,
so, this is only a general precaution.
the change results in passing 0 as contact_id around in case of errors,
however, this is fine, core will take care of it
(will result in 'careless calls' warnings).