A provision in the terms of a charitable trust that would result in distribution of the trust property to a noncharitable beneficiary prevails over the power of the court under section 45a-499gg to apply cy pres to modify or terminate the trust only if, when the provision takes effect:
Conn. Gen. Stat. § 45a-499hh