presence_dialoginfo: interetate through all 'dialog' nodes of xml document

- PUBLISH request can carry info for many dialogs
- reported and patch by Klaus Feichtinger

(adapted from commit cc4a7c67f24d105a119ea492ce53f017369af296)