DELETE on a nonexistent app should return 404

- Fixes #451