[ALOY-840] throw error on unclosed XML

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