Should any provision of this chapter be declared by the courts to be invalid, such decision shall not affect the validity of this chapter as a whole or any other part thereof, unless so specified in the judgment. If the courts declare the application of any of the provisions of this chapter to any individual, use, property or structure to be invalid, such judgment shall not affect the validity of said application of any provision to any other individual, use, property or structure, unless so specified in the judgment.