Fix logic error when removing Gerrit

Previously, this guard would be useless as position would never be greater
 than the size of the array as position is 0-based and the size is 1-based.

Change-Id: I1a58f32bcd1a71fb6d4078b4a323d0a98e38d89a
Fix: IndexOutOfBoundsException (@GerritSwitcher:removeItem:201) {main}