templates/content-display: Remove script tag when no content to display
When a content cannot be displayed (for instance due to a too large size), remove script tag from template to prevent execution errors.
Closes #3454 (closed)
Migrated from D6155 (view on Phabricator)