Fix NoneType error for make_topic_string