fix package dropdown when there are no package classes, #20686