Agreed: any contract of sale you sign could include a special condition that the vendor agrees not to enter into a new lease or licence with the existing tenant or any new tenant.
You could try to include a special condition that the vendor will serve notice on the tenant to vacate within 2...