Bind rack environment context when the middleware is available