Prevent access array with -1 index

Change-Id: I9fdf3b543a00700d47b3012b3de7b30ae455900f
1 file changed