Temporary fix for IndexOutOfBoundException

Bug: 35708283
Test: adb shell am instrument -w -r -e size small  -e debug false android.support.v7.recyclerview.test/android.support.test.runner.AndroidJUnitRunner

Change-Id: I510fd2291d488412eb90db72634eea6baf213126
(cherry picked from commit 75280f707745630eb89642e908de9becc9bf3b86)
diff --git a/v7/recyclerview/src/android/support/v7/widget/GapWorker.java b/v7/recyclerview/src/android/support/v7/widget/GapWorker.java
index e6c7801..2ed205f 100644
--- a/v7/recyclerview/src/android/support/v7/widget/GapWorker.java
+++ b/v7/recyclerview/src/android/support/v7/widget/GapWorker.java
@@ -106,6 +106,11 @@
 
         @Override
         public void addPosition(int layoutPosition, int pixelDistance) {
+            if (layoutPosition < 0) {
+                // temporary fix for b/35708283
+                return;
+            }
+
             if (pixelDistance < 0) {
                 throw new IllegalArgumentException("Pixel distance must be non-negative");
             }