Don't crash when used while middleware was not applied.

Middleware are not always applied when running specs.
Merge pull request #19 from DouweM/no-middleware-no-crash

Don't crash when used while middleware was not applied.