Prevent JSON.parse from crashing.