CRM-19503 Fix errors in Activity Summary Report