don't double escape html

Oh generators, you are so much fun.

If the file starts with <html then we believe it's a real html
file, and don't add footers / headers and don't escape.

Unit tests are updated because the new generator stacking seemed
to adjust a counter.

Change-Id: I822591450471066fb3cc02cc006ab1dfb79df786