Tome of Courage bug
Yeah, good catch on that.
I noticed this before when I saw that it gave protection, and figured maybe I could pop it and drop it for another way of keeping prot up, but to my dismay, the developers did not intend for it to be used that way so they made it drop boons on removal.
Side affect to that is exactly what you pointed out, additional boons added after the fact are wiped as well, even if they were not caused by the transformation.
Is it protection/regen only, or all boons?
Just Protection, so jumping in casting 3 and leaving will see you with 9s of Regeneration left and no Protection.
Tome of Wrath on the other hand you can jump in cast Might and Swiftness, pop back and still have both.