Fixing bug to handle <presence> stanzas.