[TIMOB-18215] (3_5_X) iOS: App crashes while parsing XML

Cherry Pick PR #6509 into 3_5_X
JiraTicket [TIMOB-18215](https://jira.appcelerator.org/browse/TIMOB-18215)