(1)If, in any case, the Superintendent is in doubt as to the legality of any warrant or order of commitment received by him with any prisoner admitted to the jail, or as to the competency of the person whose official seal and signature are affixed thereto, to pass the sentence and issue such warrant, he shall proceed in the manner provided in Section 17 of the Prisoners Act, 1900.