If the target creature is an illegal target or if the token is no longer a creature when the token's granted ability tries to resolve, the ability doesn't resolve. If it's a legal target but the token is no longer on the battlefield when the ability resolves, the target creature won't deal or be dealt damage.