Issue #2249723 by andrei.dincu: Use D8 wrappers to access server global array values in xmlsitemap.module