FLUID-4986: Fixed the issue with non-resolved IoC references in the prot...

...oTree. Tests added.