Fix corner case in bgp_xmpp_test

Change-Id: I2987b7956806f4dbd551757476185d0948d2be08