[WFCORE-158] Don't allow handlers to be removed if assigned to a logger or another handler.