BUG-981: Fixed incorrect condition in ResolveDataChangeEventsTask