Issue #2249723 by andrei.dincu: Try to transform  into an XmlSitemapInterface object in xmlsitemap.generate.inc
Issue #2249723 by andrei.dincu: Transform stdClass  into XmlSitemapInterface object in xmlsitemap.module