[FIXED JENKINS-25914] Allow the env pseudo-property to be accessed even when using sandboxed scripts.
[FXED JENKINS-25921] scheduleRun should not throw RejectedExecutionException simply because the flow is complete.