BUG: Fix accessing beyond array bounds.
BUG: Fix accessing beyond array bounds.

Check the endIndex instead of just searching for parenthesis indefinately in a while loop.

naucoin/VTKSlicerWidgets,jmerkow/VTK,arnaudgelas/VTK,johnkit/vtk-dev,cjh1/VTK,arnaudgelas/VTK,candy7393/VTK,sumedhasingla/VTK,jmerkow/VTK,SimVascular/VTK,biddisco/VTK,spthaolt/VTK,hendradarwin/VTK,arnaudgelas/VTK,collects/VTK,mspark93/VTK,daviddoria/PointGraphsPhase1,johnkit/vtk-dev,johnkit/vtk-dev,berendkleinhaneveld/VTK,sankhesh/VTK,demarle/VTK,msmolens/VTK,collects/VTK,keithroe/vtkoptix,msmolens/VTK,spthaolt/VTK,mspark93/VTK,spthaolt/VTK,sankhesh/VTK,aashish24/VTK-old,spthaolt/VTK,demarle/VTK,arnaudgelas/VTK,jeffbaumes/jeffbaumes-vtk,biddisco/VTK,collects/VTK,berendkleinhaneveld/VTK,spthaolt/VTK,naucoin/VTKSlicerWidgets,johnkit/vtk-dev,johnkit/vtk-dev,daviddoria/PointGraphsPhase1,ashray/VTK-EVM,berendkleinhaneveld/VTK,berendkleinhaneveld/VTK,berendkleinhaneveld/VTK,msmolens/VTK,collects/VTK,cjh1/VTK,candy7393/VTK,keithroe/vtkoptix,naucoin/VTKSlicerWidgets,aashish24/VTK-old,daviddoria/PointGraphsPhase1,ashray/VTK-EVM,spthaolt/VTK,sankhesh/VTK,biddisco/VTK,ashray/VTK-EVM,ashray/VTK-EVM,SimVascular/VTK,aashish24/VTK-old,demarle/VTK,johnkit/vtk-dev,SimVascular/VTK,sumedhasingla/VTK,ashray/VTK-EVM,candy7393/VTK,msmolens/VTK,demarle/VTK,collects/VTK,jeffbaumes/jeffbaumes-vtk,hendradarwin/VTK,jeffbaumes/jeffbaumes-vtk,mspark93/VTK,jmerkow/VTK,daviddoria/PointGraphsPhase1,sankhesh/VTK,msmolens/VTK,hendradarwin/VTK,mspark93/VTK,naucoin/VTKSlicerWidgets,aashish24/VTK-old,hendradarwin/VTK,msmolens/VTK,biddisco/VTK,jmerkow/VTK,gram526/VTK,ashray/VTK-EVM,biddisco/VTK,candy7393/VTK,jmerkow/VTK,SimVascular/VTK,sumedhasingla/VTK,msmolens/VTK,candy7393/VTK,gram526/VTK,collects/VTK,sumedhasingla/VTK,naucoin/VTKSlicerWidgets,sumedhasingla/VTK,mspark93/VTK,arnaudgelas/VTK,berendkleinhaneveld/VTK,sankhesh/VTK,aashish24/VTK-old,ashray/VTK-EVM,jeffbaumes/jeffbaumes-vtk,hendradarwin/VTK,gram526/VTK,spthaolt/VTK,mspark93/VTK,jeffbaumes/jeffbaumes-vtk,arnaudgelas/VTK,biddisco/VTK,hendradarwin/VTK,daviddoria/PointGraphsPhase1,naucoin/VTKSlicerWidgets,ashray/VTK-EVM,jmerkow/VTK,keithroe/vtkoptix,johnkit/vtk-dev,mspark93/VTK,SimVascular/VTK,sankhesh/VTK,demarle/VTK,jmerkow/VTK,candy7393/VTK,candy7393/VTK,demarle/VTK,sumedhasingla/VTK,SimVascular/VTK,keithroe/vtkoptix,keithroe/vtkoptix,keithroe/vtkoptix,gram526/VTK,demarle/VTK,cjh1/VTK,biddisco/VTK,hendradarwin/VTK,sankhesh/VTK,cjh1/VTK,berendkleinhaneveld/VTK,cjh1/VTK,mspark93/VTK,keithroe/vtkoptix,gram526/VTK,gram526/VTK,aashish24/VTK-old,sankhesh/VTK,msmolens/VTK,jeffbaumes/jeffbaumes-vtk,SimVascular/VTK,daviddoria/PointGraphsPhase1,gram526/VTK,SimVascular/VTK,keithroe/vtkoptix,gram526/VTK,sumedhasingla/VTK,candy7393/VTK,sumedhasingla/VTK,jmerkow/VTK,demarle/VTK,cjh1/VTK