Fix case where the buyer accepts more than is remaining, and pays that a...

...mount. Check is expanded to ensure that if the buyer overpays, he gets the whole amount available from the seller, instead of nothing.