a. In any case where the department of buildings, the fire department or the department of health and mental hygiene, or any officer or agency thereof, or any court on application or at the instance of any such department, officer or agency, shall order or direct the construction, reconstruction, alteration or demolition of any improvement on a landmark site or in an historic district or containing an interior landmark, or the performance of any minor work upon such improvement, for the purpose of remedying conditions determined to be dangerous to life, health or property, nothing contained in this chapter shall be construed as making it unlawful for any person, without prior issuance of a certificate of no effect on protected architectural features or certificates of appropriateness or permit for minor work pursuant to this chapter, to comply with such order or direction.
b. The department of buildings, fire department or department of health and mental hygiene, as the case may be, shall give the commission as early notice as is practicable, of the proposed issuance or issuance of any such order or direction.