Only allow the contents of the viewer to be copied to the clipboard when there is actually some contents.