Fix segfault when trying to destroy non initialized json_object