TRUNK-5154 ProgramWorkflowStateEditor 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 ProgramWorkflowState 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.
Manual stage Release cannot be run as it references jobs that no longer exist.