TIKA-1291/TIKA-1310 fix bug in JSON output from CLI

git-svn-id: https://svn.apache.org/repos/asf/tika/trunk@1598023 13f79535-47bb-0310-9956-ffa450edef68