Fix editing attachments on manuals

This commit fixes the 500 error the user would see if trying to edit an attachment from a manual document edit page.

https://trello.com/c/nDSnaoym/95-manual-editing-an-attachment-displays-500