dev-vcs/darcs-2.8.4: backport safeguard against repository coruption

Darcs-bug: http://bugs.darcs.net/issue2364
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>