Throw error on undefined env to demonstrate bug