fixed bug with sending error messages forever.

only process registrations if no errors are on doc.