Fix corner case in bgp_xmpp_test

Change-Id: Ie5153f7feffaa10bf35c50eb11acabaaeb84ba0b