Skip invalid fileserver cache entries

This fixes #13836
merge bug