res.write not called, empty returned response

When I try to use the livereloadSnippet middleware in my grunt-express app [as here](https://github.com/blai/grunt-express-example/blob/master/app/server.js#L22), I get an empty response on my routes.

Looking at the code, one comment says, before overwriting `res.write`:

```javascript
  // Bypass write until end
  var inject = res.write = function (string, encoding) {
```

But the call to the original res.write doesn't seem to take place. If I cache the value and include it before a call to the original res.end, I get the response I'm looking for - the livereload snippet included at the end of the body.