Check for key == NULL in json_object_get and json_object_del

`json_object_set()` and `json_object_iter_at()` check as well, so it would only be consistent with the rest of the library.