Handling invalid carts