Fix except clause for invalid JSON file.