CRM-14527 migrate cid=0 to use entity ref