Small hack to avoid crashing here

This avoids crashing when receiving a JSON object, that deserializes into
an object that itself contains circular references.