fix #34296: Crash on switching from uninitialized driver