Fix an issue where the tracks tab in a library doesn't show any tracks (#1683)