Focus the Buddy List before looking for something happening in it (Closes: #8161).

This should make the Pidgin tests more robust.
Merge branch 'test/8161-more-robust-pidgin-connected' into experimental