Fix a bug where ChannelPIpeline.remove/replace() fails when its channel is not registered yet