hotfix: prevent NPE crash on rotation

Checks whether `key` is `null` and if yes bypasses login check.
This will likely have unintended consequences, but at least the
app doesn't crash on rotation, and seems to work fine.