Paper bag fix repo 1.3's "repo upload" without --replace

If we aren't doing a replacement we do not have any
replace rules, so we cannot iterate over them.

Signed-off-by: Shawn O. Pearce <sop@google.com>
diff --git a/gerrit_upload.py b/gerrit_upload.py
index 3245140..d3d4ff3 100755
--- a/gerrit_upload.py
+++ b/gerrit_upload.py
@@ -114,10 +114,11 @@
         req.dest_branch = str(dest_branch)
         for c in revlist:
           req.contained_object.append(c)
-        for change_id,commit_id in replace_changes.iteritems():
-          r = req.replace.add()
-          r.change_id = change_id
-          r.object_id = commit_id
+        if replace_changes:
+          for change_id,commit_id in replace_changes.iteritems():
+            r = req.replace.add()
+            r.change_id = change_id
+            r.object_id = commit_id
       else:
         req = UploadBundleContinue()
         req.bundle_id = bundle_id