(1) Any notice or lapse of time prescribed by section 77 or section 78 may, by agreement expressed in the mortgage or encumbrance or otherwise in writing, be dispensed with, and in that case section 78 operates as if no notice or lapse of time were required.(2) This section applies to mortgages and encumbrances made before or after the proclaimed date.