Attempted to fix the cached inconsistency issue

There are 404/409 error when the cache of Chef databag/client/node
is out of sync. This commit will catch the exception and
invalidate the cache.