Correcting possible null reference exception and also incorrect behavior, if flags are combined for the typeinfo.
Correcting possible null reference exception and also incorrect behavior, if flags are combined for the typeinfo.

atzimler/DependencyInjection