Fix segfault on directed pickup when no CDR is available (bug #5998)