Fix segfault with unexpected backend channel EOF.

In case of git-fast-import unexpectedly exits with error,
backend_get_checksum() was crashing with segfault.