[ALOY-667] fix event handler creation with platform attributes

Ticket: [https://jira.appcelerator.org/browse/ALOY-667](https://jira.appcelerator.org/browse/ALOY-667)