Set dnAttributes on when it's requested by a filter

Same fix as https://github.com/processone/ejabberd/pull/247, this time against master.