Where a person is convicted of two or more offenses committed through a single act or omission, or through an act or omission which in itself constituted one of the offenses and also was a material element of the other, and the court imposes a sentence of imprisonment or a fine or both for one of the offenses, a fine shall not be imposed for the other. The provisions of this section shall not apply to any offense or offenses set forth in the vehicle and traffic law.