Fix 'File changed during upload: EOF...' on XML resumable uploads