Redmine #6687: Keep promise result value when linking files.

Previously it was thrown away, which would give the correct class
outcome (thanks to cfPS), but the wrong compliance outcome, because it
uses the value of the promise result.