catch invalid json (openqa's famous 404)