Added check to detect if the version for a dependency was inherited.

In this case the version of the dependency is null