Return blank checksum for git repositories with only invalid refs
If the git repository contains only refs that do not match the ones in the whitelist the checksum variable is not initialized throwing an error: "CalculateChecksum: invalid memory address or nil pointer."
Closes #1480 (closed)