(MODULES-5057) Check object present before method calls
(MODULES-5057) Check object present before method calls

Protect against module failure from absent data in some environments by checking required objects exist before calling their methods

gregohardy/puppetlabs-azure,puppetlabs/puppetlabs-azure