Moves ensure block to end of processing
Merge pull request #82 from RealDigitalMedia/fix-sinatra-context

Moves ensure block to end of processing during rack middleware