FIX - crasher resulting from trying to serialize a null JSON data object