improved error checking in error notice code
fixes #688 on forms with >2 repeat groups we werent resetting the primary key lookup value in _reduceDataForXRepeatedJoins, which meant data was removed incorrectly form the form