bson: special case bson_as_json() for empty bson document.