Section 36. Nothing in this chapter shall affect the power of a court to appoint a guardian to defend the interests of a minor impleaded in such court, or interested in a suit or matter there pending, nor the power of such court to appoint or allow a person, as next friend for a minor, to commence, prosecute or defend a suit in his behalf.