Check for illegal arguments passed to Queue.add() and Queue.leaseTasks()