fix #34296: Crash on switching from uninitialized driver
Merge pull request #1368 from Igevorse/bugs1

fix #34296: Crash on switching from uninitialized driver