internal/trace: make Trace always safe to use
Created by: bobheadxi
We currently have a panic in main on a nil trace. This change makes it always safe to call functions on Trace
Test plan
backend-integration: https://buildkite.com/sourcegraph/sourcegraph/builds/157426