Fix a bug in the pretty_error_messages helper.

* Fixes an issue where matchers would fail on models
with an autosaved belongs_to association.