Minor tweak to fix lookup in array of external ids.