Fixed issue with exception being raised during parsing of file with syntax error.