puppetlabs/mcollective-package-agent — pull request #9 by richardc (2014-06-17 11:01:54+00:00)
Title: MCOP-55 - don't treat empty results as though they're not empty

Array#max on an empty array will return nil, which then will cause
the error:

undefined method `+' for nil:NilClass (NoMethodError)

Here we gate the results processing on getting a populated results set.