Handle case where httpContext ApplicationServices is null