JENKINS-17910 - groovy.lang.MissingMethodException

Updates to how missingMethod is handled so that it will not affect the general Script