You can cast Treason of Isengard without a target just to amass Orcs. However, if you do choose a target, and that target is illegal at the time Treason of Isengard tries to resolve, Treason of Isengard won't resolve and none of its effects will happen. You won't amass Orcs.