Update nested sub Document with a specific condition

See my answer at Mongo query assistance update array element with field from object - #5 by steevej