Accessing LevelSequence tracks

I have the following code to access tracks in LevelSequence:

UMovieSceneSequence* sequence = m_actor->SequencePlayer->GetSequence();
auto tracks = sequence->PrecompiledEvaluationTemplate.GetTracks();

It works when I launch the game in the editor the 2nd, 3rd… time but it doesn’t work the first time.

Any suggestions for a fix?