Fix error in the replacement of the webstats template.

The panels with lists were not replacing the text used to include
the webstats template. An awful REPLACE_WEBSTATS came up at the bottom
page.
Merge branch 'master-upstream'