cbson: check return value from bson_append_*().