fix bug 866542 - Hide attachment table on document display page

No test included because checking for not-an-attachments-table doesn't seem logical.
One to the left. I'm not sure we need to worry about it.