Adjust check for undefined ticket.