BUG: Corrected reading SPH files when number of materials is incorrect.
BUG: Corrected reading SPH files when number of materials is incorrect.

Change-Id: I77fdef7c38e3d71f23e307e7c224322a5b0caafb

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