Fixed #1009 with a sledgehammer: Shiny exception template produces invalid XHTML
merge cc68fed908e577877e1e3fdc1777e1c9f2aa6a35 (also with a sledgehammer), refs #1009