Subscribe to any known topic

Fix _get_topic_type so that it can get the type of a topic that is subscribed to, even if it isn't published yet.