Added some missing relation checks to isValidRelations in ConstraintCheck.