If we are dealing with werewolves. Their attack includes the following:
If the target is a humanoid, it must succeed on a DC 12 Constitution saving throw or be cursed with werewolf lycanthropy.
If the target was not a humanoid at the time of the attack, then the rider effect of the werewolf bite never takes place.
A humanoid polymorphed into a beast IS a beast until the effect ends. This means they are vulnerable to animal friendship, but immune to charm person.
The curse shouldn't leave when polymorph ends, it should never have even had a Constitution save to attempt to affect the target. (If the target was polymorphed into a beast and not true polymorphed into a humanoid)