Fix regression with registration when SASL is not used.