Fix HTML errors generated by EmailableReporter2.

With these changes, the W3C HTML Validator tool (validator.w3.org) validates my emailable-report.html file as XHTML 1.1. Previously, the report generated incorrect HTML for empty test summaries and results. Also, the "back to summary" links in the results section now return the user to the top of the summary table again.