404 instead of 500 when giving import_app a non-app doc

http://manage.dimagi.com/default.asp?115936