fix a crash rotating screen while loggin in.
Merge pull request #75 from box/dismiss

fix a crash rotating screen while loggin in.