If, from the sickness or infirmity of the prisoner directed to be produced by any writ of habeas corpus, the prisoner cannot, without danger, be brought before the court or judge, the party having custody of the prisoner may state that fact in his answer. The court or judge, if satisfied of the truth of the allegation, and if the answer is otherwise sufficient, shall proceed to dispose of the matter on the record.
MCL 600.4328