Fix warnings, add short-circuit for empty spans.