Nevertheless, under the Juvenile Court Law, if the petition upon which the proceedings are founded is insufficient to give the court jurisdiction, a writ of habeas corpus will lie for the discharge of the juvenile so held after commitment. In the Matter of the Application of Azhocar, 49 Cal.App. 352 [ 193 P. 505], where a commitment had been issued, the court held as follows: "A ward of the Juvenile Court is entitled to her discharge on habeas corpus where the petition upon which the order of commitment was made, was insufficient to confer jurisdiction." Likewise, in the Matter of the Application of Burner, 23 Cal.App. 637 [ 139 P. 90], it was held, after commitment, that if the petition was insufficient to give the court jurisdiction, the juvenile was entitled to discharge upon habeas corpus.