Fix invalid read in variable_index_iterator_next

Changing function to check the incremented index before addressing the
entries array. This prevent overruning the array.

Signed-off-by: Imre Kis <imre.kis@arm.com>
Change-Id: Ibaccc1f220ba4f054f87304305f1673e0f7cab91
1 file changed