Fixed ArrayIndexOutOfBoundsException in PipelineCreator.

PipelineCreator assumes Pipeline steps are counted naturally, starting at 1.