Fixes errors in geogit-console

- Exception when closing console
- Exception when starting console in a folder that is not a geogit repo (#718)