(2)When the ryot has, before the date of his ejectment, prepared for sowing any land comprised in his holding, but has not sown or planted crops on that land, he shall be entitled to receive from the landholder the estimated value of the labour and capital expended by him in so preparing the land, together with reasonable interest thereon:Provided that a ryot shall not be entitled to retain possession of any land or receive any sum in respect thereof under this section when, after the commencement of proceedings by the landholder for his ejectment, he has cultivated or prepared the land contrary to local usage:Provided also that the rent, if any, payable to the landholder by the ryot at the time of ejectment may be set off against any sums payable to the ryot under this section.