Ring middleware: fix possible unintended session clearing
v2.0.1