Nothing in this chapter shall prevent the restoration of any structure or use to a safe or sanitary condition, nor shall the chapter prevent regular maintenance of any nonconforming use or structure.