When sync select was enabled, checking for selected elements isn't a correct way to check for visible UV's for that mesh. Meshes without any selected vertices were skipped, even when they contained similar UV's that should have been selected.