Fix a bug in import_py_mod() if the module does not exist.