[4.2] Fixed FileStore::flush If The Cache Root Directory Doesn't Exist

Trying to list the content of a non-existing directory raises an exception, with this patch calling flush doesn't fail even if the cache is completely empty.