Strip end line spaces
replace old bson_empty to new bson_shared_empty call