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

Middleware are not always applied when running specs.