fix a bug with channels that had never set a /topic; they could not encrypt their chats due to a JS error