eXist r18087, fix a RESTXQ bug