nonconforming structure or portion of a structure containing a nonconforming use, ordinary repair and maintenance work, including remodeling, repair or replacement of nonbearing walls, fixtures, wiring, or plumbing, shall be permitted providing that the cubic volume existing when it became nonconforming shall not be increased, except pursuant to section 61.6.4. Nothing in this section shall be deemed to prevent the restoring to a safe condition of any building or part thereof declared to be unsafe by any official charged with protecting the public safety, upon order of such official.