If you activate the ability and the enchanted creature leaves the battlefield before the ability resolves, you still get a token. The enchanted creature's last existence on the battlefield is checked to see what it was (specifically, if it was itself or if it was copying something else).