"registered" must also populate the 'attr' avp, if defined
(cherry picked from commit 286f06f2a21c269aebdbeee81d2f5a264be2518d)