prevent null "Uid" or "Flag" Attribute during UpdateDocumentAttributes