Function GetGameWorld from EditorLevelLibrary not work correctly in UE5

I can’t get World with this function in Play mode when I using UE5

BTW, it works in UE4