TRUNK-5157 ProgramWorkflowEditor tries to get state by uuid twice
the catch block will never be reached since getByUuid() just returns
null if nothing is found. The exception in the try block is normally
thrown by Integer.valueOf() if the text is a uuid and not a number
* use getState(Integer) first to try to get the ProgramWorkflow by
its id
* is text is not an Integer, the exception in Integer.valueOf will lead
to the catch block being executed which then tries to fetch by the uuid
* added tests
Configuration changes
Some of the jobs or stages referenced by this result no longer exist.
Restarting failed/incomplete builds only is not possible as some of the affected jobs no longer exist.