[MAGEMEP-95] Correcting problem with category tree after saving