Fix 'rack.errors' not being set for Rack apps

I ran into an issue recently where Sinatra's error handler expects `env['rack.errors']` to contain something that responds to `puts`, but when running under WebMock, it doesn't. This causes the error handler itself to throw an error, making debugging rather difficult.

The attached code fixes this issue and includes a test case for it.