[ALOY-669] Generated style arrays sometimes contain "undefined" keys

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