Only update mLastUploadTime after upload completes without error