Fixed a stack level too deep problem when validating a record.

Autosaved associations validates nested records and it there are
inverse associations it will result a recursion. Solution is to
mark valid records so that they can be skipped when inverse
associated records are validated.