fixed bug in Mojo::DOM::HTML where non-self-closing elements were not handled correctly