Um it shouldn't have gotten formatted, what you need to do is redownload Pokemon OR onto the old SD card and you should be able to load the old save, because I'm thinking you just missed the last step of the transfer process which is to put the old SD card in the new 3DS. Even if the game itself doesn't show up on the old SD card the old data should still be readable from it, which is how you got your save on here in the first place.