QA-5440 : improvement according to code review AND-169 (throw an exception when an error occurs while saving nodetype instead of quit silently)