Build: handle derefPkg of package not in repo better

null package name is not helpful...