smartxml: fix - DocumentNode.getIndex() now handles node being out of document tree