fix bug 866542 - Hide attachment table on document display page

No test included because checking for not-an-attachments-table doesn't seem logical.
Looks the same. Don't forget to http://www.youtube.com/watch?v=HAkHqYlqops