(d) If the vacancy in the office of trustee is not filled as provided in subdivision (b) or (c), on petition of any interested person or any person named as trustee in the trust instrument, the court may, in its discretion, appoint a trustee to fill the vacancy.
If the trust provides for more than one trustee, the court may, in its discretion, appoint the original number or any lesser number of trustees. In selecting a trustee, the court shall give consideration to any nomination by the beneficiaries who are 14 years of age or older.