CHEF-5287: batch resource: can't convert nil into String due to invalid ENV hash

See original pull request: https://github.com/opscode/chef/pull/1496.