On any nonconforming building/structure, ordinary maintenance may be performed to repair, replace, strengthen or restore any walls, fixtures, windows, wiring, plumbing, or roofing. Nothing in this chapter prevents the strengthening or restoring to a safe condition of any building/structure or part thereof declared to be unsafe by any official charged with protecting the public safety, upon order of such official;