Invalid PathId error message in ModelValidation.

Fixes #849.