fixes #106: crash on opening buffer or nick list while connecting

This fixes #106