fixes #3851 - increment error counter for non-resource Puppet errors