A non-conforming building damaged by fire, explosion, act of God or any other casualty to an extent less than fifty percent (50%) of replacement cost at the time such damage occurred as determined by the community development department may be restored and the building or portion of such building that existed at the time of such damage may be repaired provided all repairs have been made and a certificate of occupancy has been issued within twelve (12) months of such damage, subject to all other provisions of this ordinance and applicable city codes. The community development director may grant an extension of up to six (6) additional months upon issuing a written finding that the owner has diligently pursued restoration of the building.