Allow self closing tags in HtmlElement class

Summary: Currently if we add a self closing html element to HtmlElement it just outputs two of them. This sorts that problem.

Test Plan: See the correct output

Reviewers: brooke

Reviewed By: brooke

Differential Revision: http://phabricator.cubex.io/D22