Fix fatal in LocalRepo::findFiles()

Bug: 58587
Change-Id: I12513b40453573124e838d54a72a2f9a2d3de338
(cherry picked from commit 07298f30cda6b7fc2192789583228a88eef5e2ac)