Added checks to ensure that required roles are not able to be uninstalled