Avoid Array#find in Puppet::Resource::Catalog::Puppetdb#find_resource

![screen shot 2013-04-26 at 1 58 00 am](https://f.cloud.github.com/assets/2567/441717/b12b80f8-b123-11e2-8f4d-d6c5ffc53f3e.png)