Use the path resolver when dealing with tree artifacts.

RELNOTES: None
PiperOrigin-RevId: 206157591
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/FilesystemValueChecker.java b/src/main/java/com/google/devtools/build/lib/skyframe/FilesystemValueChecker.java
index b501f3a..31fa632 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/FilesystemValueChecker.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/FilesystemValueChecker.java
@@ -394,7 +394,8 @@
     // There doesn't appear to be any facility to batch list directories... we must
     // do things the 'slow' way.
     try {
-      Set<PathFragment> currentDirectoryValue = TreeArtifactValue.explodeDirectory(artifact);
+      Set<PathFragment> currentDirectoryValue =
+          TreeArtifactValue.explodeDirectory(artifact.getPath());
       Set<PathFragment> valuePaths = value.getChildPaths();
       return !currentDirectoryValue.equals(valuePaths);
     } catch (IOException e) {