Find the processing rule in question and set the non-xml to be true there as well as the input processing of the mpgw to non-xml. The errors will go away.
The default processing for a lot of objects in the rule are assuming xml and that's why you're seeing that.