A termination of probation and dismissal of charges pursuant to Section 1203.4 or a dismissal of charges pursuant to Section 1203.4a of the Penal Code does not affect any revocation or suspension of the privilege of the person convicted to drive a motor vehicle under this chapter. Such person’s prior conviction shall be considered a conviction for the purpose of revoking or suspending or otherwise limiting such privilege on the ground of two or more convictions.