Some NULL pointer checks for libyahoo2 - this code's currently crashing because BitlBee ignores file transfers.