Branches dashboard: "[o] checkout remote as local" fails when there are no local branches
When there are no local branches, trying to create a branch by hitting `[o]` does nothing. The console shows the error message:

>Traceback (most recent call last):
  File "core.interfaces.branch in /Users/Allen/Library/Application Support/Sublime Text 3/Installed Packages/GitSavvy.sublime-package", line 218, in run_async
IndexError: list index out of range
diff --git a/core/interfaces/branch.py b/core/interfaces/branch.py
index 8d167993..e94ab345 100644
--- a/core/interfaces/branch.py
+++ b/core/interfaces/branch.py
@@ -250,10 +250,13 @@ class GsBranchesCheckoutAsLocalCommand(TextCommand, GitCommand):
         segments = line.strip("▸ ").split(" ")
         branch_name = segments[1]
 
-        local_region = self.view.get_regions("git_savvy_interface.branch_list")[0]
-        if local_region.contains(selection):
-            # No-op if selection is a local branch.
-            return
+        selected_branches = self.view.get_regions("git_savvy_interface.branch_list")
+        if selected_branches:
+            # No-op if there are no branches
+            local_region = selected_branches[0]
+            if local_region.contains(selection):
+                # No-op if selection is a local branch.
+                return
 
         remotes = self.get_remotes()
         for remote_name in remotes:
['core/interfaces/branch.py']