0022238: Study dump produced by SMESH refers to undefined variable names
0022238: Study dump produced by SMESH refers to undefined variable names

Fix CheckObjectPresence() again

+  ASSERT( thePartIndex > 0 );

FedoraScientific/salome-smesh,FedoraScientific/salome-smesh,FedoraScientific/salome-smesh,FedoraScientific/salome-smesh