[Toolkit.Compiler] Added check for non-existing collections