Adding null check for dependencies for packages that are fully self contained