Fixed a potential issue that could cause photos to not be uploaded to our long-term storage if there were networking errors.