Fix add errors to mark things as dirty.

@bug W-2456794@

@rev jparadis@
Merge branch 'goliver/master-pending-add-errors-dirty'