[TIMOB-13253] Check for listeners before firing events
Merge pull request #4240 from vishalduggal/timob-13253

[TIMOB-13253] Check for listeners before firing events