Fix some crashing on pressing back during upload.