Fix for https://github.com/eXist-db/messaging-replication/issues/25