Handle invalid JSON produced by scraper