Fix corner case in bgp_xmpp_test

Change-Id: I11d50c8e3d8f24dc35d465fa187e9ab762dba718