Fix error when current path is not a git repo

On the LibGit2Sharp branch, if GitExtensions is started with a path that isn't a valid git repository, it will throw an exception and popup a dialog box.
This commit resolves that issue.