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
Issues https://issues.jenkins-ci.org/browse/JENKINS-16789