Fixed an undefined issue in express middleware

Hi Fred!

I got a couple of `undefined` issues when trying to use v2.0. Sublime fixed some whitespace issues aswell, hopefully that's okey?

Offtopic: are you planning a stable 2.0 release soon?