Fix to_xhtml for empty elements in JRuby.  #971 #557