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 #2017 from monishdeb/CRM-13738

CRM-13738 related fix on Activity Report