Correct problems with editing shopping cart

Most of these changes improve debugging output for the shopping
cart. The primary change of substance is PaymentSystemImpl line 315,
where we needed to check the country for null so the update
transaction can complete.