No judge of a superior court shall grant a writ of certiorari or sustain the writ in a criminal or quasi-criminal case on the ground that the venue was not proved in the trial court or that the time of the commission of the offense was not proved, unless there is a distinct allegation in the petition for the writ of failure to prove the venue or time and an allegation of error as to such matters.