Section 16. If the land levied upon is under lease to a third person, and the reversion of the whole is taken on the execution, the lessee shall pay to the creditor the rent accruing after the levy, except such part as he has paid before notice of the levy.