Whenever it shall appear to the court that any proposed cy pres application would not be proper because it is in violation of New Hampshire law, the court shall enter a decree denying said proposed cy pres application and stating the reason therefor.