Section 3. The provisions of sections one and two shall not apply to any trust to the extent that a court of competent jurisdiction shall determine that such application would be contrary to the terms of the instrument governing such trust and that the same may not properly be changed to conform to such sections.