Fix for mgmtclass pre trigger

Fix for exception caused during the removal of a mgmtclass