Catch errors with incomplete JSON responses