fix "Invoice is newer than last payment type change" condition, RT#33766