If an exception to an indictment or information is taken and sustained upon the ground that there is no offense against the law charged therein, the defendant shall be discharged, unless an affidavit be filed accusing him of the commission of a penal offense.
Tex. Code Crim. Proc. § 28.07