fix bug that caused the middleware to break when no options was passed. fixes #2
0.0.7