[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.