Close #2847 assume obj as an id first in Collection#get

Any potential problems? The problem in the issue is extremely unlikely but it's trivial to fix that case...