Whenever any person is sentenced to imprisonment under this Act, and is undergoing the sentence in any place or manner in which he might be confined under a lawful order or warrant in pursuance of this Act, the confinement of such person shall not be deemed to be illegal only by reason of informality or error in, or as respects, the order, warrant or other document, or the authority by which, or i