Force reloading Git DB cache on error

Just recreating the object does not help as gitdb module is holding
cache of objects and won't reread it unless explicitely told so.

This still leaves open question how to detect these situations better.

Fixes #449

Signed-off-by: Michal Čihař <michal@cihar.com>