It probably messes up the item classes but I can't fix it until I know how.
I'll need to redistribute this bug, so when this happens to you again, please don't touch the inventory item, just unholster the pistol and leave the ammo alone and PM me your character name, I will look into the saved inventory and perhaps I'll be able to find out what's wrong.