fixed incorrect promise resolution

On 401 error, the get session promise should never resolve as the sso
javascript will do a hard redirect on the page. Resolving the promise
provides undefined result to the promise's consumer, propagating errors
down the promise chain, resulting in a flash of error page and js
console errors.

joe/topic/JI-487-race-condition
Merge pull request #2 from janrain/joe/topic/JI-487-race-condition

fixed incorrect promise resolution