Check for key == NULL in json_object_get and json_object_del