Fix saveAll failed to save array that last entry have validation error

See the added test case for details