Properly detach old connectors for repaintAll response (#11067)

Change-Id: I6491a9b30ea4c0e4ff141497b9bd78e5d1c4c98c