fix rendering a document with a thumbnail under bootstrap 3.0.3