81. The Registrar, on receipt of every such notice, shall file the same, and the Defendant shall, at any time thereafter, without notice to the Plaintiff, be entitled to apply to the Court or Judge to have judgment entered for him for his costs. The discontinuance of an action by the Plaintiff shall not prejudice any action consolidated therewith or any counterclaim previously set up by the Defendant; and the Court or Judge shall be at liberty to refuse to enter judgment until any such consolidated action or counterclaim has been disposed of.