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

(cherry picked from commit eb7410a3787432f417dc13465f25e46353362d91)
Release 2.1.4