Fixed an error about databags list inconsistence

We cached the list of databags in memory because it is expensive
to check existence of a databag. However, we need to make sure the
validity of the cache. This commit tried to fix an error caused
by invalid list of databags.
Improved error message on failure of Chef command