Minecraft wiki entry for Zombified_Piglin, associated text: If a piglin is in the middle of bartering and gets zombified while inspecting a gold ingot, it drops the ingot when it turns into a zombified piglin.