Cache: fix scanner trying to use existing data when file isn't in cache