(b) The remedies provided in this section are in addition to and shall not limit other rights or remedies available to landlords and tenants. Any provision, whether oral or written, of any lease or other agreement, whereby any provision of this section is waived by a tenant, is contrary to public policy and void. The provisions of this section also apply to occupants and owners of residential real property which is the subject of a mortgage foreclosure or contract for deed cancellation and as to which the period for redemption or reinstatement of the contract has expired.