Added integer validation for QueueItem.