If any woman is, at the time of her commitment to the center, pregnant with a child which will be born after her commitment, the custody of the child, at the instance of the commissioner, shall be determined in accordance with Title 22, chapter 1071.