Fixes issue with hoisted variables being set to undefined rather to this.UNDEFINED.

Resolves #7