Fix corner case in bgp_xmpp_test

Change-Id: Id039f8255a5b94ffe6935f31d19b5cb2529bcd11