MDL-52370 role: purge coursecontacts when role is edited