Fix bug in Rails 4 when session reset brought to NoMethodError
fix for #464
can be removed when Rails 4.1 is out
Merge pull request #475 from NoamB/safe-session-reset

Fix bug in Rails 4 when session reset brought to NoMethodError