Don't crash during deps log recompaction if there's more than one deps entry.

Part of issue #554.
Merge pull request #555 from nico/depscompactcrash

Don't crash during deps log recompaction if there's more than one deps entry.