[ALOY-1053] Fixes Object 1 has no method 'indexOf' error

Resolves https://jira.appcelerator.org/browse/ALOY-1053