Fixed an undefined issue in express middleware
Merge pull request #6 from phillipj/fix/middleware-undefined

Fixed an undefined issue in express middleware