Fix callerid segfault in rare combination (bug #3519)