Prevent NoneType error in raid_client connection