If the juvenile court, after finding that the minor is a person described by Section 300, 601, or 602, is in doubt concerning the state of mental health or the mental condition of the person, the court may continue the hearing and proceed pursuant to this article.