The cart gets flushed and the session in the database gets removed altogether when the user registers after adding an item to the cart as a guest.
The weird thing is