Nothing in this chapter shall prevent the restoration of a structure partially destroyed by fire or otherwise subsequent to the passage of this chapter or prevent the continuance of the use of a building or part thereof existing at the time of such destruction. Nothing in this chapter shall prevent the restoration of a wall, or any part of a building, declared unsafe by the Construction Code Official.