Fix crash from changing media route from separate thread