TIMOB-14590 Add 'lastEvent' to Analytics module.
TIMOB-14590 Adding a null check.
Merge pull request #4463 from BlainHamon/timob-14590_3_1_X

TIMOB-14590 Add 'lastEvent' to Analytics module. 3.1.2 backport