Permalink to DM fails to load on -daily

Description

Only repros on daily

Steps to Reproduce

1. Open a permalink to a DM in a new window (don't have MM loaded in the page yet, or refresh the page when viewing a permalink in a DM channel) on -daily

Note: you need to have access to the DM to repro this

Expected

1. Permalink loads

Observed

1. JavaScript exception and blank page:

QA Test Steps

None

Status

Mana

None

Assignee

Sudheer Timmaraju

QA Assignee

None

Reporter

Jesse Hallam

Epic Link

None

Fix versions

Mattermost Team

Apps

Labels

None

QA Testing Areas

None

GitHub Issue

None

Components

None
Configure