ticket.56763:Fix IndexOutOfBoundsException in KKDialogManager.