Fix corner case in bgp_xmpp_test

Change-Id: Icab56b139471d92239812ce9b6f18f9afe956680