Follow up of Bug 24583 - [imports]: failed fetch should result null document in import list

This change ensures that the failed fetch even doesn't create any document
and make the output of the algorithm null.