templates/content-display: Fix view when an image cannot be rendered
Previously, a suprising "Error 200" was displayed in place of a message indicating that the file cannot be rendered.
Also simplify some code in swh.web.tests.data module.
Closes #2389 (closed)
Migrated from D3118 (view on Phabricator)