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
Merge pull request #2870 from kurund/CRM-14352

fixes for duplicate relationship error, CRM-14352