[ALOY-691] fix duplicate dataFunction creation with platform attribute

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