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

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

(cherry picked from commit 7a827a612f93b9dd938f9b78c0de3ac2d98a0c77)