Fix corner case in bgp_xmpp_test

Change-Id: I6bbbbadbac9e37c051e1c5d552334d6d87787974