Previously it crashed if you had `<CascadingAuthenticationState>` and were doing static prerendering. https://github.com/aspnet/AspNetCore/pull/12318