Don't error when topic doesn't have creator (#17)

Don’t error when topic doesn’t have creator (#17)

diff --git a/assets/javascripts/discourse/helpers/category-expert-question-indicator.js b/assets/javascripts/discourse/helpers/category-expert-question-indicator.js
index 8aa6014..98208f6 100644
--- a/assets/javascripts/discourse/helpers/category-expert-question-indicator.js
+++ b/assets/javascripts/discourse/helpers/category-expert-question-indicator.js
@@ -7,7 +7,7 @@ export function categoryExpertQuestionIndicator(topic, currentUser) {
 
   if (
     currentUser.staff ||
-    topic.creator.id === currentUser.id ||
+    topic.creator?.id === currentUser.id ||
     currentUser.expert_for_category_ids.includes(topic.category_id)
   ) {
     return htmlSafe(

GitHub sha: e9fd4b38

This commit appears in #17 which was approved by pmusaraj. It was merged by markvanlan.