Not a bugged item. For whatever reason, if you have a small lag spike during gambling, sometimes an item can already have the "sold" flag applied to it. Since all gambling and identifying is done via a check from server side now instead of client side, it can result in bugs.
As others have side, rejoin and it'll realize you didn't actually sell the item and you still have it and correctly set the flag.