added handling for an IndexError exception (no open folder)
added handling for an IndexError exception (no open folder)

didn't seem like the error was causing problems but it was popping up
the console

sunnyagain/sublime-text-git,kemayo/sublime-text-git