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

Part of issue #554.