Updated another area of the DI container throwing exceptions when a class does not exist.