DEV: followup to prev commit

DEV: followup to prev commit

337bd9a0f7616414 did not account for optimized image being nil

diff --git a/app/models/topic_thumbnail.rb b/app/models/topic_thumbnail.rb
index ae8d17b..f121615 100644
--- a/app/models/topic_thumbnail.rb
+++ b/app/models/topic_thumbnail.rb
@@ -26,7 +26,7 @@ class TopicThumbnail < ActiveRecord::Base
       upload_id: original.id,
       max_width: max_width,
       max_height: max_height,
-      optimized_image_id: optimized.id
+      optimized_image_id: optimized&.id
     ])
 
     TopicThumbnail.find_by(

GitHub sha: 76c4bc92