render: fix crash when shows DM with media (fixes #39)