Fix NPE if failure occurred before upload

Such error happens when the importing mike.dv for example.