Exempt graphic tags from empty element removal algorithm