Fixes #3558. CMSSitemaps now work correctly with multiple sites.