"jurisdiction" literally means "the power to say what the law is"
If the court had no jurisdiction, it is not possible for them to rule on "deficiencies in the legal theory of the crime" in that case.