Fixed sorting by popularity for select attribute options

Sort by popularity uses all values for an option that have ever been saved. So if "tag 1" had been used 15 times in versions that were no longer active, then those 15 would count towards the total. Potentially, you could show an attribute as the "Most Popular" even though no pages were using it any more. 

This fixes it to only use options that are selected for approved collection versions.