Fix edge case where referral server is null

Signed-off-by: Ricky Elrod <ricky@elrod.me>