CRM-13977 related fix

----------------------------------------
* CRM-13977: activities report fails to add contacts to group - fatal error
  http://issues.civicrm.org/jira/browse/CRM-13977