Cart total will return 0 when empty

Currently if we call cart.total when the cart is empty and error is thrown. This fix will have total return 0 in the cart is empty.