Fix some issues scanbuild found in the xmpp protocol plugin

Review Request #711 — Created June 2, 2021 and submitted — Latest diff uploaded

Information

pidgin/pidgin
release-2.x.y
0b139e724ace

Reviewers

Fix some issues scanbuild found in the xmpp protocol plugin
Verified that scanbuild no longer detected the errors.