CRM-13665 - Make upgrade fault tolerant for merging activity contacts

http://issues.civicrm.org/jira/browse/CRM-13665