Fix topic table not being updated

This caused the messages to be posted to GS multiple times.
Get the topic before sending it to update_topic_table.