Fixes #3558. CMSSitemaps now work correctly multiple sites.