Add check for valid component when marking value as dirty.

@bug W-1794937@
@rev fabbott@
Merging origin/bob/master-pending/markdirty-valid-cmp into master