Fixes #19 - Don't fail to load project if not in a git repo.

Checks for null branch string and returns empty rather than
fail the build.

Fixes #19

Review by @hseeberger