Is there a workaround for this bug? Do I understand the issue that this only occurs if the first document has a namespace declaration?
Exactly. A dirty workaround would be to add another initial dummy document before adding your topic and meta documents.
It's on my list, and I'll try to get it fixed today! Christian
PS: By the way, you don't need to call OPEN after the CHECK command.