Protect against the case where a filesystem based dependency doesn't exist

Protect against the case where the dependency is in the file system, and
the project that represents the dependency has no code and therefore no
target/classes directory. Otherwise the component service component
descriptor reader will be sad.