When any civil action other than a proceeding to probate the will of a deceased person is brought against any heir or devisee, who is a minor, the court may appoint a guardian ad litem for such minor heir or devisee and compel the person so appointed to act: Provided, that by such appointment such person shall not be rendered liable to pay any costs of the action.
740 ILCS 80/17