Didn't the whistle go before the second player touched it? If so, that would have nullified the first player messing around.
I'd go for no goal anyway because how do the officials know which touch from the first player was the actual taking of the corner?