Dont return cached date in shared cache when the file doesn't exist

Properly return `false` instead.

Fixes #12538

cc @PVince81 @DeepDiver1975