Issue #3002353 by Dave Reid: Fixed PHP Notice: Undefined variable $context in XmlSitemapController::renderSitemapXml().