Fixed issue where an exception was thrown after taking a payment.