Improved backwards compatibility for when JSON is unavailable. Now
preventing errors from displaying like [object Error].