Update Application.pm - Update dump_html()

Ensure dump_html() returns valid html.