render: fix crash when shows DM with media