Fix git cl upload --send-mail typo in split_cl.py

R=iannucci@chromium.org

Bug: --send-email is not a command
Change-Id: Ia6a034204510322d674e0a45a2ed8a43dbba242c
Reviewed-on: https://chromium-review.googlesource.com/757131
Commit-Queue: Gabriel Charette <gab@chromium.org>
Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
diff --git a/split_cl.py b/split_cl.py
index 1614372..4e93f6a 100644
--- a/split_cl.py
+++ b/split_cl.py
@@ -164,7 +164,10 @@
 
     author = git.run('config', 'user.email').strip() or None
     refactor_branch = git.current_branch()
+    assert refactor_branch, "Can't run from detached branch."
     refactor_branch_upstream = git.upstream(refactor_branch)
+    assert refactor_branch_upstream, \
+        "Branch %s must have an upstream." % refactor_branch
 
     owners_database = owners.Database(change.RepositoryRoot(), file, os.path)
     owners_database.load_data_needed_for([f.LocalPath() for f in files])