HarvestSetting throws exception when encoded with: asXml()