fixed error

when the user doesn't have enough cash, the buy_item_id was return type
None. I had several million $ when testing, so I missed this one