FIX: 'topic' can have null value

FIX: ‘topic’ can have null value

diff --git a/Gemfile.lock b/Gemfile.lock
index 299c7f9..1c78e4c 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -560,4 +560,4 @@ DEPENDENCIES
   webpush
 
 BUNDLED WITH
-   1.17.3
+   2.0.1
diff --git a/app/assets/javascripts/discourse/components/topic-status.js.es6 b/app/assets/javascripts/discourse/components/topic-status.js.es6
index a3e47b7..9e92561 100644
--- a/app/assets/javascripts/discourse/components/topic-status.js.es6
+++ b/app/assets/javascripts/discourse/components/topic-status.js.es6
@@ -32,8 +32,13 @@ export default Ember.Component.extend(
 
     buildBuffer(buffer) {
       const canAct = this.get("canAct");
+      const topic = this.get("topic");
 
-      TopicStatusIcons.render(this.get("topic"), function(name, key) {
+      if (!topic) {
+        return;
+      }
+
+      TopicStatusIcons.render(topic, function(name, key) {
         const actionable = ["pinned", "unpinned"].includes(key) && canAct;
         const title = escapeExpression(I18n.t(`topic_statuses.${key}.help`)),
           startTag = actionable ? "a href" : "span",

GitHub sha: 1b454c73