Halt execution in JSONTask on JSON parse errors

before execution would continue which result in an undefined
variable (results) getting accessed which caused a further exception.
Merge pull request #13 from samn/halt-on-json-errors

Halt execution in JSONTask on JSON parse errors