Currently our attachment logic always generates an tag even when none is generated (as when attaching a python script, for instance). The refers to the non-existent thumbnail of the attachment. We should fix this by creating a generic 'attachment' thumbnail for use in this case.
Based my fix on this mockup https://engr.geek.net/wiki/download/attachments/1672555/v2-g-234-edit.png