If the defendant is acquitted on the ground of a variance between the charge and the proof, or the charge is dismissed upon an objection to its form or substance, or discharged for want of prosecution, without a judgment of acquittal or in bar of another prosecution, it is not an acquittal of the crime and does not bar a subsequent prosecution for the same crime.