Fixed invalid PathID error message in ModelValidation.

Fixes #849.