Nothing shall prevent the substantial restoration of a nonconforming use to its former condition or better, within 12 months, and the continued use of a nonconforming building or facility in the same manner as its use immediately prior to damage by fire, flood, earthquake, act of God or the public enemy.