If it was masterworked, it shouldn't have shown up on the list. Did you possibly own two of the same sword, one heirloomed and one not?
If you really did only own one sword, I really have no idea what went wrong, but talking to one of the devs on the iirc might get you somewhere.