Fix after change from plugin to middleware

Sitemap and robots.txt not generated