Ensure digest_file() returns something, even in the case of errors