Seventeen-year-olds. If a petition alleging that a juvenile is delinquent is filed before the juvenile is 17 years of age, but the juvenile becomes 17 years of age before admitting the facts of the petition at the plea hearing or if the juvenile denies the facts, before an adjudication, the court retains jurisdiction over the case.