Catch JSON parse error

When query builder returns 200 but doesn't return proper JSON. This occurs when the lucene index is out of date and returns a path to a non-existent node.
Add example script