Fix bug #22745: choose_track function crashes the game in certain cases

In certain cases "current_track_index" can be greater than
"current_track_list.size()" thus causing an "index out of
range" error.
Merge pull request #291 from LovCAPONE/ChoseTrackBug

Fix bug #22745: choose_track function crashes the game in certain cases