Fix infinite loop while uploading failed asset