Fix crash when no tracks present