Fix potential crash if mmap path fails while creating file cache entry