Nothing in this ordinance shall prevent the restoration of any building to a safe and sanitary condition when required to do so by the proper authorities of the county.