SONAR-4985 Fix persistence of file hashes when sonar.branch is used