Section 6. The provisions of sections four and five shall not apply to any corporation to the extent that a court of competent jurisdiction shall determine that such application would be contrary to the terms of the articles of organization or other instrument governing such corporation or governing the administration of charitable funds held by it and that the same may not properly be changed to conform to such sections.