Added NullRef checks in Dependency collection events.