JObject is somewhat deprecated, although there is no `@deprecated` tag..

What if you just do a 
```php
if (!$item->xmldata)
{
   $item->xmldata = new JRegistry;
}
```
That would just display empty fields, without warnings ;)