Bug 964216 - follow-up: fix getEnv issue

See bug https://bugzilla.mozilla.org/show_bug.cgi?id=964216 please.