hotfix to session check not working when sessionKey is null