fix crash on topicStr being null on restore