Fixed exception when use empty topic prefix

Fixed https://github.com/niwibe/jnanomsg/issues/5