Fix reference error.

Accessing DummyENV without checking if it is defined throws an uncaught ReferenceError.