EST-198: primary and secondary parties now computed for terminated leases.

If there is no agreement role that is current, then the most recent (ie max effective end date) is returned instead.

Also, in the Lease#paidBy and Lease#newBankMandate, we still check that the agreement role for the secondary party (ie tenant) is current.