Section 2. Nothing contained herein shall be construed to authorize any fiduciary to consent to the doing of any act contrary to the directions in regard to investments contained in the will, deed or other instrument under which such fiduciary is acting.