Issue #2249723 by andrei.dincu: Do not store sitemap entities values in state(), store them in config()
Issue #2249723 by andrei.dincu: Replace theme() function with drupal_render() in xmlsitemap.install