Fixes #912.
Merge pull request #913 from fgabolde/topic/issue-912

Fixes #912 (send_file may return 500 instead of 404 for non-existent files)