(4) Such money, or any part thereof, may also be applied by the trustees, or, if in Court, under the direction of the Court, in rebuilding, reinstating, replacing, or repairing the property lost or damaged, but any such application by the trustees shall be subject to the consent of any person whose consent is required by the instrument, if any, creating the trust to the investment of money subject to the trust.