Fix crash in each model's 'repr' with no IDs.