fix(session): resolve identity only if we have valid token

SD-1085
Merge pull request #549 from petrjasek/devel

fix(session): resolve identity only if we have valid token