PUP-3258 make apply work even when an ENC script is configured

This is only half a fix, I suspect. It fixes broken `puppet apply` where
 * an ENC script is used
 * that ENC does not return an environment

`apply` is apparently still broken *if* an environment is chosen by the ENC script.