Bug fix: Setting DEBUG to 0 won't suppress the stack trace when the content type is application/json (Issue #257)