Fix compatibility with PuppetDB 2.1