If a court of competent jurisdiction finds the application of any provision of this chapter to any building, other structure or tract of land to be invalid in whole or in part, the effect of such decision shall be limited to the person, property or situation involved in the controversy, and the application of any such provision to any other person, property or situation shall not be affected.