Don't try and bridge github repos with no master branch.

Thanks to Mike Jiang for help coming up with a test case for this.