Subject to an express appropriation to fund the treatment programs required by this section, the department may not release a child under supervision or parole a child if:
(1) the child has a substance abuse problem, including the use of a controlled substance, hazardous inhalable substances, or alcohol habitually; and
(2) the child has not completed a treatment program for the problem.