Fixes T54174, but rather than making a distinction between the username not being found and the password being wrong (and only re-registering in the former case), we now just always re-register. This could potentially hide certain erroneous situations, but it does make the worker operational in more cases, which I assume is generally preferred.