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.
Duplicate of MC-88967 ?