Use returnvalue of SwiftDef finalize, log error if roothash could not be
computed
Fixed return of finalize
Merge pull request #656 from NielsZeilemaker/swift_roothash_fix

Use returnvalue of SwiftDef finalize, log error if roothash could not be