Correctly identify primary geo_id in comparison.js

Looks like `||` has a tighter binding than ternary if, which is weird.