Dependency Injection in ASP.NET Core and issue with null suppresion - C#