Fix uploadcompleted called via onerror is not returning the file obj