fix ValueError on max([]) when there are no cart items