[ALOY-907] Properly report AST parsing error

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