If in any case the plaintiff or complainant be an infant suing by next friend, such next friend shall be liable for costs.