Bugfixes in ChannelUID and ThingRegistryImpl

Signed-off-by: Alex Tugarev <telekom@tugarev.de>