If the target of the first ability is an illegal target at the time the ability tries to resolve (likely because it left the graveyard in response), the ability won't resolve and none of its effects will happen. You won't put a +1/+1 counter on Urborg Scavengers.