(2)If any person under trial before a Magistrate for an offence under this Act at any time before a charge is framed, claims to be tried by the Court of Sessions, the Magistrate shall, if he does not discharge the accused, commit the case for trial by that court, notwithstanding that it is not a case exclusively triable by that court.