context.onerror: fix response handling

closes #199
Merge pull request #200 from koajs/fix/ctx.onerror

context.onerror: fix response handling