Quite an interesting bug, but a bug nonetheless that will hurt players who lose their trading halls to zombification, even if they name tag villagers. If a name tagged villager is converted to a zombie villager, it will retain its name but will be able to despawn. This does not work when naming a zombie villager directly, as they will not despawn.
Environment
Get a villager
Apply a name tag
Allow a zombie to convert a villager
Leave the area
The zombie villager will have despawned, despite being name tagged and retaining its name.
Duplicate of MC-88967 ?