Fix invalid references to None while opentracing if the log context slips.