bson: check return value of bson_iter_init().
bson: add api precondition.