Fixed bug while parsing bad JSON source.