Patch for mis-handling next calls from within express middleware.