If just the first targeted creature is an illegal target by the time Feral Contest resolves, it won’t get a +1/+1 counter. However, the second targeted creature is still affected by the blocking restriction the spell imposes, so it’ll have to block the first targeted creature that turn if able.