PE-2823 Make module compatible with future parser

This PR solves https://tickets.puppetlabs.com/browse/PE-2823.