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

Added checks when removing handlers to assure they are not assigned to another handler or a logger.