Don't generate references where there is no ID in the source model.