In the event that the Building Inspector, the Fire Marshal or a court shall order or direct, in the interest of the public health, safety and welfare, the construction, reconstruction, alteration or demolition of a building, structure, object or site in a historic district, the terms of this chapter may be waived to the extent that the applicant may proceed with the ordered action for the purpose of remedying conditions determined to be imminently dangerous to life, health or property.