[DS-2317] Some elements shouldn't appear when printing a page

Fixes https://jira.duraspace.org/browse/DS-2317