TEZ-1699. Vertex.setParallelism should throw an exception for invalid invocations (bikas)
(cherry picked from commit 06e9f88eb207f00ae2f31f46477001726754115c)