Fixed a minor crash when getting branch info from sourcestamps