Correctly process reference fields which use multiple fields.

Previously we had $and between all conditions when to apply an update,
but it should be $or, because if any of the fields is not up to date,
we have to update it.