bugfix: coredump when BSON_STRING length==0