Remove needless close marks for empty element