fix nil error on cachedump failure