Fix in the case where the git branch and revision cannot be recovered. See merge request !67
mentioned in issue #124 (closed)