added empty object to errorJSON() call to catch when no error is present
Merge pull request #1324 from ben-bradley/json-reporter-fix

added empty object to errorJSON() call to catch when no error is present

Introduced in #1295
Fixes #1314