--Fix notices on Activities report

If any component is disabled then Activities report shows lots of notices for undefined index, as it fetches activities related to types mentioned for disabled component.
Here it is checking that the related activities are of enabled activity type.