Check the assume-valid and update flags before determining isModified