Any mortgagee or encumbrancee of leasehold land under this Act, or any person claiming the land as a purchaser or otherwise from or under the mortgagee or encumbrancee after entering into possession of the land or the rents and profits thereof shall, during the possession and to the extent of any rents and profits which may be received by him or her, become and be subject and liable to the lessor of the land or the person for the time being entitled to the lessor's interest in the land to the same extent as the lessee or tenant was subject to and liable for prior to the mortgagee, encumbrancee or other person entering into possession of the land or the rents and profits thereof.