glw: Fix crash in selectTrack when destroying model

Fixes #2284