Setting an import null should be an error, see #1072