downgrade 500 on bad attachment name to a 404

fixes http://manage.dimagi.com/default.asp?68034