tests: Fix segv in t-json.c
* tests/json/t-json.c (test_contains): Avoid calling recusivly with no child.