Expect API field to be null

Gerrit does not populate lists in the API when they have no entries.
This commit makes automerger cope with one instance of that.

Change-Id: Ia8f434870ae29897f91513a9ad14b508464d98fc
diff --git a/src/main/java/com/googlesource/gerrit/plugins/automerger/DownstreamCreator.java b/src/main/java/com/googlesource/gerrit/plugins/automerger/DownstreamCreator.java
index 84ae7c3..b61675c 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/automerger/DownstreamCreator.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/automerger/DownstreamCreator.java
@@ -214,7 +214,7 @@
             ChangeInfo downstreamChange =
                 gApi.changes().id(changeNumber).get(EnumSet.of(ListChangesOption.CURRENT_REVISION));
             for (Map.Entry<String, LabelInfo> labelEntry : labels.entrySet()) {
-              if (labelEntry.getValue().all.size() > 0) {
+              if (labelEntry.getValue().all != null && labelEntry.getValue().all.size() > 0) {
                 OptionalInt maxVote =
                     labelEntry.getValue().all.stream()
                         .filter(o -> o.value != null)