If an entity described in this subsection has wardship, the person described in subsection (a) who had legal custody of the child (or, in the case of a father described in subsection (a)(2), was married to a mother with legal custody) at the time wardship was transferred is the parent, legal guardian, or custodian of the child unless a court has terminated that person's legal custody or guardianship rights.
IC 16-18-2-266.4