A tenant or occupant of a building that is destroyed or becomes uninhabitable or unfit for occupancy through no fault or neglect of the tenant or occupant may vacate and surrender such a building. A tenant or occupant may expressly agree otherwise except as prohibited by section 504B.161.