CRM-13738 related fix

----------------------------------------
* CRM-13738: Activity Report fails if filtering on any contact
  http://issues.civicrm.org/jira/browse/CRM-13738
Merge pull request #2216 from monishdeb/CRM-13738-fix

CRM-13738 related fix