Handle json.parse error for gltf loading