fix NPE registration_requires_email_confirmation flow
Merge pull request #44 from realbeast/feature/fixemailconfirmationflow

fix NPE registration_requires_email_confirmation flow