Fix for stack trace on 204 without content type