What Calafox said is the only possible way. You can't toss, give, or permanently use TMs anymore, so the only way this is possible is that you never saved your game, the saving went corrupt and loaded the last known save state, etc.
If you want to think outside the box: your game might be defective, but reinitialization code getting scrambled, moved, or deleted, is basically impossible.