39. Whenever any defendant or accused party shall have pleaded in any action, proceeding or matter brought in any Court of First Instance neither party shall afterwards be entitled to object to the jurisdiction of such court, but such court shall be taken and held to have jurisdiction over such action, proceeding or matter:
Provided that where it shall appear in the course of the proceedings that the action, proceeding or matter was brought in a court having no jurisdiction intentionally and with previous knowledge of the want of jurisdiction of such court, the Judge shall be entitled at his discretion to refuse to proceed further with the same, and to declare the proceedings null and void. *Objection to jurisdiction.*