When removing the subpaths of an external path, we first need to check
if a subpath is not versioned instead of checking if it is empty.
If a subpath is versioned, we can stop the paths removal process.
Relate to T3870
Fixes [SWH-LOADER-SVN-53](https://sentry.softwareheritage.org/share/issue/d6330b7c048249d99342e4c9d56dce19/)
Depends on D7015