NH-3405 - Fix exception when loading XDocument when WrapResultSets configuration option is on.