Fix regressions of #5063 for importlib_metadata.PathDistribution which have their files attribute being None.