Fixed bug in xpathJoin opt where WELL_XML check is not correctly handled.