(PUP-3512) Add Puppet 3.5.1 compatibility

Make the new profiler calls compatible with Puppet 3.5.1.