ProjectArtifactResolver: fix parent checking