If it appears that a person alleged to be restrained of his liberty is in the custody of an officer under process issued by a court or magistrate, or by virtue of the judgment or order of a court of record, and that the court or magistrate had jurisdiction to issue the process, render the judgment, or make the order, the writ of habeas corpus shall not be allowed. If the jurisdiction appears after the writ is allowed, the person shall not be discharged by reason of any informality or defect in the process, judgment, or order.
R.C. §2725.05