Fix persistent hash mismatch errors when importing

This would start happening if the network connection between the Hydra server and the remote build server breaks after sucessfully importing at least one output of a derivation, but before having finished importing all outputs.

Fixes #816.

Created by  Ricardo M. Correia  on November 9, 2020
GPUIIYUKOCYHVF5VWXSGSW2LT6WWTQY6XZPWLFKZJJFIKHWO4Q2QC
Change contents