Normalize data to nil to avoid cjson.decode errors

I will normalize this to a more generic function and use pcall to safely
handle errors