[DEV-1411] Get the first element of the tuple returned by get_or_create.
[DEV-1449] Merge branch 'DEV-1411' into DEV-1449: index tuple returned by get_or_create.