call handleActivityFinished only when activity is finished
rename private method to better match caller
Merge pull request #1527 from mtbc/rebased/develop/activity-handler-11368

fix #11368: adjust event dispatch in Insight agents (rebased onto develop)