If they agree to pay letting fees and any vacancy until you find a new tenant then I don't see why not? In fact, that's a better deal then waiting for them to move out in August when you will need to cover letting fees and potential vacancies from your own pocket.
It's a win-win situation...