Logged In: YES
Originator: YES

Not such a simple fix after all. It seems that rather than closing off an open <baseName> upon receiving the event for a variant, it's creating a new <baseName> and putting the <variant> in that. Because the latter doesn't have a <baseNameString> of its own, the element is invalid. This might be happening in the tree walker.