catch ValueError when the cache json.load method fails, fixes #245