Added check for the existence of the study during its closing
Added check for the existence of the study during its closing

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