If the action is not for a personal injury to the ward, whether the ward is a minor or a person of unsound mind, on the appointment of a guardian pending an action, such guardian may, on application, be substituted for the next friend, and the action must proceed in the name of the guardian for the use of the ward.