hwc2: Fix incorrect index

Loop from [0 to numRects)

Change-Id: I7d8651dc2c17e84a7d9c09286c36b638e5f187ac
CRs-Fixed: 1034144
1 file changed