CRM-13738 fix - Activity Report fails if filtering on any contact

http://issues.civicrm.org/jira/browse/CRM-13738
Merge pull request #1980 from monishdeb/CRM-13738

CRM-13738 fix - Activity Report fails if filtering on any contact