Fix Application and Response bugs.

- Change environment request for ACCEPT to HTTP_ACCEPT.
- Fix the dispatch for a null response.