PUP-1322 Do not fail hard on unparseable files

This PR solves https://tickets.puppetlabs.com/browse/PUP-1322.