Fix registration bug where successful registration after an error was still rejected. [Fix #56286046]