Correctly guard file_list modification in gclient update

TBR=smut@chromium.org
BUG=658959

Review-Url: https://codereview.chromium.org/2448993003
diff --git a/gclient_scm.py b/gclient_scm.py
index c929544..4a4e601 100644
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -674,8 +674,9 @@
             # whitespace between projects when syncing.
             self.Print('')
 
-      file_list.extend(
-          [os.path.join(self.checkout_path, f) for f in rebase_files])
+      if file_list is not None:
+        file_list.extend(
+            [os.path.join(self.checkout_path, f) for f in rebase_files])
 
     # If the rebase generated a conflict, abort and ask user to fix
     if self._IsRebasing():