DEV: Do not delete failed uploads from S3 in debug mode (PR #14143)

See also 58e9fffe4cd0156284257c64306a6af0133367e0

GitHub