Advanced Search does not filter relationships with deleted contacts

 Fix for https://issues.civicrm.org/jira/browse/CRM-13456