No trustee of such a trust, or any beneficiary thereof, shall be charged with any liability whatsoever by reason of any act or omission committed or suffered in the performance of the purposes of the trust. However, liability for any act or omission so committed or suffered shall extend to the whole of the trust estate, or so much thereof as may be necessary to discharge the liability, and not otherwise.