Another XHTML violent - <div>'s do not match during a redirect.
How to reproduce:
1. Disable stats (make $CFG->enablestats empty)
2. Go to Site Administration > Reports > Course overview
What is expected:
There should be a message "Stats have not yet been enabled on this site." and automatc redirection to Server > Statistics setting page
What actually happened:
XHTML rendering error message. Looking at the source code, there is extra </div>