Fix ArrayList overrun in transaction list

Fix folder flushOperations so doesn't overrun the operations ArrayList
when it splits the original transaction into a sequence of smaller
transactions. This would happen whenever the number of transactions in
the original set was not an even multiple of the chunk size used.

Change-Id: I81d9449af2f433aa3ca25c3d209ff0ab7810a946
1 file changed