Fix a regression from yesterday caused by nested
calls to i_get_global_track_num(), and add some assert() statements
to ensure it can't happen elsewhere...