Section 21. If an answer in abatement filed in the land court in an action which is not governed by the Massachusetts Rules of Civil Procedure is overruled on demurrer, or, if, in consequence of such answer in abatement, the plaintiff amends, the defendant within such time as the court orders shall plead to the merits.