[JENKINS-16789] Don't wait for the result of the last build if none of scriptOnlyIfSuccess and scriptOnlyIfFailure is checked

Don't wait for the result of the last build if none of scriptOnlyIfSuccess and scriptOnlyIfFailure is checked
[JENKINS-16789]