fixes for duplicate relationship error, CRM-14352

----------------------------------------
* CRM-14352: Fatal error: Relationship already exists when contact with duplicate relationships registers for an event
  https://issues.civicrm.org/jira/browse/CRM-14352