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

...d bug with the ti.platform object being defined in the wrong order.