Avoid freeing a NULL pointer when detaching if_bwn.