The provisions of this act shall have no application to the commitment of any person charged with or convicted of a criminal offense.

L.1952, c. 76, p. 408, s. 5.