Make an import without an href properly generate an error event.