ref: Fix Clang Static Analyzer in SentryTracer (#1386)
ref: Fix Clang Static Analyzer in SentryTracer (#1386)

Fix Clang Static Analyzer issues in SentryTracer so we can
enable the Clang Analyzer in the future to avoid PRs like #1385.
getsentry/sentry-swift,getsentry/sentry-swift