Fix a crash related to auto search: https://bugs.launchpad.net/airdcpp/+bug/1332942