Party hat (Birthday Event) Removing clothing

When player respawns from death his inventory is restored but also with a party hat and this party hat is removing the clothing from their inventory.  I fear this issue will do the same to hotbar with xmas update with the snowballs.  I'm unaware of a way to disable this.  

If you have a solution could you please patch for it?

Thank you

Find:

if (!Configuration.DefaultItems)
    StripContainer(player.inventory.containerBelt);

replace with:

if (!Configuration.DefaultItems)
                {
                    StripContainer(player.inventory.containerBelt);
                    StripContainer(player.inventory.containerWear);
                }

not pretty, but should get rid of the hat...