issue 27:
Check if Session.getActiveSession() is null in both onStart and onStop
Merge pull request #28 from john-hu/issue-27

issue #27, close #27.