Fixed issue with exception when there is a syntax error in the file.