lib/topic.js: better assert message

Modified the message reported for an invalid topic name to include the invalid
value. This should help troubleshooting errors that are difficult to reproduce
on a developer's machine.