report correct equipment/gear item lost on death (most of the time)

Fixes https://github.com/HabitRPG/habitrpg/issues/2789 most of the time. On my local install, when I die with this new code, I see the wrong item reported maybe 1 in every 20 times, as opposed to about 1 in 1 without this fix.