Where a mortgage covering an investor sponsored project is modified and consolidated with the mortgage of a purchasing nonprofit cooperative housing corporation or trust, it shall be deemed to be paid in full as of the date of such modification and consolidation.