Added next if !%Ticket for fixing message Need TicketID!  in Sys Log