fix nullable warnings in guard class (#332)
fix nullable warnings in guard class (#332)

Co-authored-by: Cijo Thomas <242191b8c991f635fefc07748c2f69af50b38db4@microsoft.com>
open-telemetry/opentelemetry-dotnet-contrib,open-telemetry/opentelemetry-dotnet-contrib