handle case where printing HTML tag in serialize fails due to it not having children