Fixed: $Param{NextState} is always undef in AgentTicketCompose (bug#10097).