Fix crash when blank topic is set.

- Fix a bug where the channel wasn't returned from addchannel.