Adjusts state checking to first check the document's state before diving into the aggregate state.
Allows for missing role fields, which is valid for some of the fields.