Fixed issue #7638: Crash when viewing printable version