fix: Resolved an ImportError crash when using --import-mode=importlib
#13053
+39
−3
ImportError crash when using --import-mode=importlib
#13053