Fixes CHEF-5093

Hash#assoc not available in Ruby 1.8.7 which is still supported

Thanks to Lamont Granquist