A waiver of or agreement to shorten the time period to exercise the right to cure a default granted by the provisions of this article that is made before the date of the default as to which the waiver is granted under a deed of trust, mortgage, or other instrument evidencing a lien or an evidence of debt secured thereby shall be void as against public policy.