set session to null after invalidating it
Merge pull request #456 from itmm/master

Fixes NullPointerException on invalid sessions