Check assetTopic before call first_topic_name

Fix error like `undefined method `topic' for nil:NilClass`