Error handling when session value is nil
Merge pull request #43 from ekanna/master

Error handling when session value is nil