Fix [ 312 ] HTML writer generates invalid HTML if the table has two tags.