[TIMOB-16797] Update the platform name in the ti.enroll event. Also fixed bug with the ti.platform object being defined in the wrong order.
Merge pull request #5574 from cb1kenobi/timob-16797

[TIMOB-16797] Update the platform name in the ti.enroll event. Also fixe...