Section 42. Any initial pleading or process by which an action is commenced by a plaintiff who is not an inhabitant of the commonwealth, shall before the filing or entry thereof, be endorsed by a responsible person who is such an inhabitant; but if one of the plaintiffs is such an inhabitant, the pleading or process need not be so endorsed. Every endorser, in case of avoidance or inability of the plaintiff, shall be liable to pay all costs awarded against the plaintiff if an action therefor is commenced within one year after the original judgment.