Catch if module file is not set (issue #6984)

When loading .net assemblies after `import clr`, the `__file__` attribute is present but not set, causing the autoreload module to not work appropriately.