bson: check return value of bson_iter_init().