Fix logic in cannot_be_paid (bug 938716)