Fix stud SSL queue as per DATASET-908
Fix segfault when no server available (DATASET-871).