Issue #2249723 by andrei.dincu: Replace variable_get() with \Drupal::config()->get() and make condition more visible in xmlsitemap.generate.inc