Fix remove permissions associated with a role when that role is deleted.