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.
Merge pull request #2025 from kacfengine/redmine6687

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