fix bug 866542 - Hide attachment table on document display page

No test included because checking for not-an-attachments-table doesn't seem logical.
Should be one to the right :-(