[10-stable] Fix crashes on invalid cache files

We occasionally run into corrupt cache files, and chef can't
recover from this becuase Moneta throw TypeError instead of ArgumentError.
Merge pull request #1319 from jaymzh/fix-cache-bugs-10

[10-stable] Fix crashes on invalid cache files