check if MiniProfiler.Current is null in the OnValidateIdentity task