When the leasing or occupation is for the purpose of farming or agriculture, the tenant or person in possession shall, after the termination of the lease or occupancy, have free access to the premises to cultivate and harvest or gather any crop or produce of the soil planted or sown by the tenant or person before the service of the notice to quit.