[Fix] importType
: avoid crashing on a non-string
#2305
+26
−11
Merged