Check that `error` actually parsed before indexing on 2FA check
Merge pull request #1129 from heroku/brandur-safe-2fa

Check that `error` actually parsed before indexing on 2FA check