Fixes #53 and matches native behavior for imports that have error'd: the `import` property is now null in this case.