Fixes errors in geogit-console

- Exception when closing console
- Eexception when starting console in a folder that is not a geogit repo
Merge pull request #719 from volaya/console_fixes

Fixes errors in geogit-console