The "mortgagee clause" (also called mortgage holder clause) in a homeowners policy protects the lender by: