MODE-2139 Added validation for preventing the removal of protected properties.