Prevent .onmatch from being called if an assertion is generated in the dialog.

fixes #3170, #3463.
Merge pull request #3699 from mozilla/issue_3170_match_after_login

Prevent .onmatch from being called if an assertion is generated in the dialog