CRM-13738 related improvisation and notice fix in Activity Report

This PR holds the changes mentioned in https://github.com/civicrm/civicrm-core/pull/1980#issuecomment-28784042