mediator: avoid __flash__toXML deadly loops