Fix error message to name the correct starting model.

`model` changes while iterating through relations, so use `opts.model` instead.