Fix missing NULL checks in NewSessionTicket construction